/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ippacket;

import java.util.ArrayList;

/**
 *
 * @author chuda
 */
public class Packet {
    private ArrayList<Header>headers = null;
    private Object content = null;

    /**
     * @return the headers
     */
    public ArrayList<Header> getHeaders() {
        return headers;
    }

    /**
     * @param headers the headers to set
     */
    public void setHeaders(ArrayList<Header> headers) {
        this.headers = headers;
    }

    /**
     * @param header the header to add
     */
    public void addHeader(Header header) {
        if(headers == null)
            headers = new ArrayList<Header>();
        headers.add(header);
        setHeaders(headers);
    }
    /**
     * @return the content
     */
    public Object getContent() {
        return content;
    }

    /**
     * @param content the content to set
     */
    public void setContent(Object content) {
        this.content = content;
    }
}
